﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using SoulHackerCUnite.Data;

namespace TestProject
{
    /// <summary>
    /// Interaction logic for DemonInfo.xaml
    /// </summary>
    public partial class DemonInfo : Window
    {
        private Demon _demon;

        public DemonInfo()
        {
            InitializeComponent();
        }

        public DemonInfo(Demon demon)
        {
            _demon = demon;
            InitializeComponent();
            LoadInfos();
        }

        private void LoadInfos()
        {
            // add demon info to show.
            if(_demon!=null)
            {
                lLevel.Content = _demon.Level.ToString();
                lName.Content = _demon.Name;
                lRace.Content = _demon.RaceJ;

                lHP.Content = _demon.HeathPoint;
                lMP.Content = _demon.ManaPoint;
                lDisposition.Content = _demon.Disposition;

                lStr.Content = _demon.Strength;
                lInt.Content = _demon.Intelligence;
                lMag.Content = _demon.Magic;
                lSta.Content = _demon.Stamina;
                lSpd.Content = _demon.Agility;
                lLuk.Content = _demon.Luck;

                lSkill1.Content = _demon.Skill1;
                lSkill2.Content = _demon.Skill2;
                lSkill3.Content = _demon.Skill3;
                lSkill4.Content = _demon.Skill4;
                lSkill5.Content = _demon.Skill5;
                lSkill6.Content = _demon.Skill6;
            }
        }
    }
}
